package com.zxy.example.provider;

import com.zxy.example.common.service.UserService;
import com.zxy.zxyrpc.bootstrap.ProviderBootStrap;
import com.zxy.zxyrpc.model.ServiceRegisterInfo;

import java.util.ArrayList;
import java.util.List;


/**
 * 全局配置加载测试
 *
 * @author zxy
 * @since 2025/5/11
 **/
public class ProviderExample {
    public static void main(String[] args) {
        List<ServiceRegisterInfo<?>> serviceRegisterInfoList = new ArrayList<>();
        ServiceRegisterInfo<UserService> serviceRegisterInfo = new ServiceRegisterInfo<>(UserService.class.getName(), "1.0", UserServiceImpl.class);
        serviceRegisterInfoList.add(serviceRegisterInfo);

        ProviderBootStrap.init(serviceRegisterInfoList);
    }
}
